/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.obeonetwork.dsl.spem.extension.spem_ifest.impl;

import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;

import org.eclipse.emf.ecore.impl.EPackageImpl;

import org.obeonetwork.dsl.spem.SpemPackage;

import org.obeonetwork.dsl.spem.extension.spem_ifest.Activity;
import org.obeonetwork.dsl.spem.extension.spem_ifest.Artifact;
import org.obeonetwork.dsl.spem.extension.spem_ifest.ArtifactDefinition;
import org.obeonetwork.dsl.spem.extension.spem_ifest.ArtifactDefinitionPackage;
import org.obeonetwork.dsl.spem.extension.spem_ifest.ArtifactTransformation;
import org.obeonetwork.dsl.spem.extension.spem_ifest.EngineeringDomain;
import org.obeonetwork.dsl.spem.extension.spem_ifest.EngineeringDomainPackage;
import org.obeonetwork.dsl.spem.extension.spem_ifest.Level;
import org.obeonetwork.dsl.spem.extension.spem_ifest.MetaModel;
import org.obeonetwork.dsl.spem.extension.spem_ifest.MetaModelPackage;
import org.obeonetwork.dsl.spem.extension.spem_ifest.OntologyLinkedElement;
import org.obeonetwork.dsl.spem.extension.spem_ifest.Spem_ifestFactory;
import org.obeonetwork.dsl.spem.extension.spem_ifest.Spem_ifestPackage;
import org.obeonetwork.dsl.spem.extension.spem_ifest.TaskDefinition;
import org.obeonetwork.dsl.spem.extension.spem_ifest.ToolDefinition;
import org.obeonetwork.dsl.spem.extension.spem_ifest.ToolType;
import org.obeonetwork.dsl.spem.extension.spem_ifest.ToolTypePackage;
import org.obeonetwork.dsl.spem.extension.spem_ifest.Viewpoint;
import org.obeonetwork.dsl.spem.uma.UmaPackage;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Package</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class Spem_ifestPackageImpl extends EPackageImpl implements Spem_ifestPackage {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass engineeringDomainEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass toolDefinitionEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass viewpointEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass taskDefinitionEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass artifactDefinitionEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass speM_IFESTEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass toolTypeEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass engineeringDomainPackageEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass toolTypePackageEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass metaModelEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass metaModelPackageEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass ontologyLinkedElementEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass artifactDefinitionPackageEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass artifactEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass activityEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass artifactTransformationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EEnum levelEEnum = null;

	/**
	 * Creates an instance of the model <b>Package</b>, registered with
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
	 * package URI value.
	 * <p>Note: the correct way to create the package is via the static
	 * factory method {@link #init init()}, which also performs
	 * initialization of the package, or returns the registered package,
	 * if one already exists.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see org.eclipse.emf.ecore.EPackage.Registry
	 * @see org.obeonetwork.dsl.spem.extension.spem_ifest.Spem_ifestPackage#eNS_URI
	 * @see #init()
	 * @generated
	 */
	private Spem_ifestPackageImpl() {
		super(eNS_URI, Spem_ifestFactory.eINSTANCE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static boolean isInited = false;

	/**
	 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
	 * 
	 * <p>This method is used to initialize {@link Spem_ifestPackage#eINSTANCE} when that field is accessed.
	 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #eNS_URI
	 * @see #createPackageContents()
	 * @see #initializePackageContents()
	 * @generated
	 */
	public static Spem_ifestPackage init() {
		if (isInited) return (Spem_ifestPackage)EPackage.Registry.INSTANCE.getEPackage(Spem_ifestPackage.eNS_URI);

		// Obtain or create and register package
		Spem_ifestPackageImpl theSpem_ifestPackage = (Spem_ifestPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Spem_ifestPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new Spem_ifestPackageImpl());

		isInited = true;

		// Initialize simple dependencies
		SpemPackage.eINSTANCE.eClass();

		// Create package meta-data objects
		theSpem_ifestPackage.createPackageContents();

		// Initialize created meta-data
		theSpem_ifestPackage.initializePackageContents();

		// Mark meta-data to indicate it can't be changed
		theSpem_ifestPackage.freeze();

  
		// Update the registry and return the package
		EPackage.Registry.INSTANCE.put(Spem_ifestPackage.eNS_URI, theSpem_ifestPackage);
		return theSpem_ifestPackage;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getEngineeringDomain() {
		return engineeringDomainEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getEngineeringDomain_Viewpoints() {
		return (EReference)engineeringDomainEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getEngineeringDomain_Performs() {
		return (EReference)engineeringDomainEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getEngineeringDomain_Relies() {
		return (EReference)engineeringDomainEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getToolDefinition() {
		return toolDefinitionEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getToolDefinition_Data() {
		return (EReference)toolDefinitionEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getToolDefinition_IsTypeOf() {
		return (EReference)toolDefinitionEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getViewpoint() {
		return viewpointEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getViewpoint_Caracterize() {
		return (EReference)viewpointEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getTaskDefinition() {
		return taskDefinitionEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getTaskDefinition_Consumes() {
		return (EReference)taskDefinitionEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getTaskDefinition_Produces() {
		return (EReference)taskDefinitionEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getTaskDefinition_Applies() {
		return (EReference)taskDefinitionEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getTaskDefinition_Level() {
		return (EAttribute)taskDefinitionEClass.getEStructuralFeatures().get(3);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getArtifactDefinition() {
		return artifactDefinitionEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getArtifactDefinition_Id() {
		return (EAttribute)artifactDefinitionEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getArtifactDefinition_Organized() {
		return (EReference)artifactDefinitionEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getArtifactDefinition_Level() {
		return (EAttribute)artifactDefinitionEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getSPEM_IFEST() {
		return speM_IFESTEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getToolType() {
		return toolTypeEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getToolType_Supports() {
		return (EReference)toolTypeEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getToolType_MetaModel() {
		return (EReference)toolTypeEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getEngineeringDomainPackage() {
		return engineeringDomainPackageEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getToolTypePackage() {
		return toolTypePackageEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getMetaModel() {
		return metaModelEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getMetaModel_MetaModelURI() {
		return (EAttribute)metaModelEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getMetaModelPackage() {
		return metaModelPackageEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getOntologyLinkedElement() {
		return ontologyLinkedElementEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getOntologyLinkedElement_Uri() {
		return (EAttribute)ontologyLinkedElementEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getArtifactDefinitionPackage() {
		return artifactDefinitionPackageEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getArtifact() {
		return artifactEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getArtifact_Level() {
		return (EAttribute)artifactEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getActivity() {
		return activityEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivity_Context() {
		return (EReference)activityEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getArtifactTransformation() {
		return artifactTransformationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getArtifactTransformation_Source() {
		return (EReference)artifactTransformationEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getArtifactTransformation_Target() {
		return (EReference)artifactTransformationEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EEnum getLevel() {
		return levelEEnum;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Spem_ifestFactory getSpem_ifestFactory() {
		return (Spem_ifestFactory)getEFactoryInstance();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isCreated = false;

	/**
	 * Creates the meta-model objects for the package.  This method is
	 * guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void createPackageContents() {
		if (isCreated) return;
		isCreated = true;

		// Create classes and their features
		engineeringDomainEClass = createEClass(ENGINEERING_DOMAIN);
		createEReference(engineeringDomainEClass, ENGINEERING_DOMAIN__VIEWPOINTS);
		createEReference(engineeringDomainEClass, ENGINEERING_DOMAIN__PERFORMS);
		createEReference(engineeringDomainEClass, ENGINEERING_DOMAIN__RELIES);

		toolDefinitionEClass = createEClass(TOOL_DEFINITION);
		createEReference(toolDefinitionEClass, TOOL_DEFINITION__DATA);
		createEReference(toolDefinitionEClass, TOOL_DEFINITION__IS_TYPE_OF);

		viewpointEClass = createEClass(VIEWPOINT);
		createEReference(viewpointEClass, VIEWPOINT__CARACTERIZE);

		taskDefinitionEClass = createEClass(TASK_DEFINITION);
		createEReference(taskDefinitionEClass, TASK_DEFINITION__CONSUMES);
		createEReference(taskDefinitionEClass, TASK_DEFINITION__PRODUCES);
		createEReference(taskDefinitionEClass, TASK_DEFINITION__APPLIES);
		createEAttribute(taskDefinitionEClass, TASK_DEFINITION__LEVEL);

		artifactDefinitionEClass = createEClass(ARTIFACT_DEFINITION);
		createEAttribute(artifactDefinitionEClass, ARTIFACT_DEFINITION__ID);
		createEReference(artifactDefinitionEClass, ARTIFACT_DEFINITION__ORGANIZED);
		createEAttribute(artifactDefinitionEClass, ARTIFACT_DEFINITION__LEVEL);

		speM_IFESTEClass = createEClass(SPEM_IFEST);

		toolTypeEClass = createEClass(TOOL_TYPE);
		createEReference(toolTypeEClass, TOOL_TYPE__SUPPORTS);
		createEReference(toolTypeEClass, TOOL_TYPE__META_MODEL);

		engineeringDomainPackageEClass = createEClass(ENGINEERING_DOMAIN_PACKAGE);

		toolTypePackageEClass = createEClass(TOOL_TYPE_PACKAGE);

		metaModelEClass = createEClass(META_MODEL);
		createEAttribute(metaModelEClass, META_MODEL__META_MODEL_URI);

		metaModelPackageEClass = createEClass(META_MODEL_PACKAGE);

		ontologyLinkedElementEClass = createEClass(ONTOLOGY_LINKED_ELEMENT);
		createEAttribute(ontologyLinkedElementEClass, ONTOLOGY_LINKED_ELEMENT__URI);

		artifactDefinitionPackageEClass = createEClass(ARTIFACT_DEFINITION_PACKAGE);

		artifactEClass = createEClass(ARTIFACT);
		createEAttribute(artifactEClass, ARTIFACT__LEVEL);

		activityEClass = createEClass(ACTIVITY);
		createEReference(activityEClass, ACTIVITY__CONTEXT);

		artifactTransformationEClass = createEClass(ARTIFACT_TRANSFORMATION);
		createEReference(artifactTransformationEClass, ARTIFACT_TRANSFORMATION__SOURCE);
		createEReference(artifactTransformationEClass, ARTIFACT_TRANSFORMATION__TARGET);

		// Create enums
		levelEEnum = createEEnum(LEVEL);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isInitialized = false;

	/**
	 * Complete the initialization of the package and its meta-model.  This
	 * method is guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void initializePackageContents() {
		if (isInitialized) return;
		isInitialized = true;

		// Initialize package
		setName(eNAME);
		setNsPrefix(eNS_PREFIX);
		setNsURI(eNS_URI);

		// Obtain other dependent packages
		SpemPackage theSpemPackage = (SpemPackage)EPackage.Registry.INSTANCE.getEPackage(SpemPackage.eNS_URI);
		UmaPackage theUmaPackage = (UmaPackage)EPackage.Registry.INSTANCE.getEPackage(UmaPackage.eNS_URI);

		// Create type parameters

		// Set bounds for type parameters

		// Add supertypes to classes
		engineeringDomainEClass.getESuperTypes().add(this.getOntologyLinkedElement());
		engineeringDomainEClass.getESuperTypes().add(theSpemPackage.getMethodContentElement());
		toolDefinitionEClass.getESuperTypes().add(theSpemPackage.getToolDefinition());
		toolDefinitionEClass.getESuperTypes().add(this.getOntologyLinkedElement());
		viewpointEClass.getESuperTypes().add(this.getOntologyLinkedElement());
		viewpointEClass.getESuperTypes().add(theSpemPackage.getMethodContentElement());
		taskDefinitionEClass.getESuperTypes().add(this.getOntologyLinkedElement());
		taskDefinitionEClass.getESuperTypes().add(theSpemPackage.getTaskDefinition());
		artifactDefinitionEClass.getESuperTypes().add(this.getOntologyLinkedElement());
		artifactDefinitionEClass.getESuperTypes().add(theSpemPackage.getGuidance());
		speM_IFESTEClass.getESuperTypes().add(theSpemPackage.getMethodLibrary());
		toolTypeEClass.getESuperTypes().add(this.getOntologyLinkedElement());
		toolTypeEClass.getESuperTypes().add(theSpemPackage.getToolDefinition());
		engineeringDomainPackageEClass.getESuperTypes().add(theSpemPackage.getMethodContentPackage());
		toolTypePackageEClass.getESuperTypes().add(theSpemPackage.getMethodContentPackage());
		metaModelEClass.getESuperTypes().add(theSpemPackage.getMethodContentElement());
		metaModelEClass.getESuperTypes().add(this.getOntologyLinkedElement());
		metaModelPackageEClass.getESuperTypes().add(theSpemPackage.getMethodContentPackage());
		artifactDefinitionPackageEClass.getESuperTypes().add(theUmaPackage.getGuidancePackage());
		artifactEClass.getESuperTypes().add(theSpemPackage.getWorkProductDefinition());
		artifactEClass.getESuperTypes().add(this.getOntologyLinkedElement());
		activityEClass.getESuperTypes().add(theSpemPackage.getActivity());
		artifactTransformationEClass.getESuperTypes().add(theSpemPackage.getBreakdownElement());

		// Initialize classes and features; add operations and parameters
		initEClass(engineeringDomainEClass, EngineeringDomain.class, "EngineeringDomain", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getEngineeringDomain_Viewpoints(), this.getViewpoint(), null, "viewpoints", null, 0, -1, EngineeringDomain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getEngineeringDomain_Performs(), this.getTaskDefinition(), null, "performs", null, 0, -1, EngineeringDomain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getEngineeringDomain_Relies(), this.getToolType(), null, "relies", null, 0, -1, EngineeringDomain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(toolDefinitionEClass, ToolDefinition.class, "ToolDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getToolDefinition_Data(), this.getArtifactDefinition(), null, "data", null, 0, -1, ToolDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getToolDefinition_IsTypeOf(), this.getToolType(), null, "isTypeOf", null, 0, -1, ToolDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(viewpointEClass, Viewpoint.class, "Viewpoint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getViewpoint_Caracterize(), this.getArtifactDefinition(), this.getArtifactDefinition_Organized(), "caracterize", null, 0, -1, Viewpoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(taskDefinitionEClass, TaskDefinition.class, "TaskDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getTaskDefinition_Consumes(), this.getArtifact(), null, "consumes", null, 0, -1, TaskDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getTaskDefinition_Produces(), this.getArtifact(), null, "produces", null, 0, -1, TaskDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getTaskDefinition_Applies(), this.getViewpoint(), null, "applies", null, 0, -1, TaskDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getTaskDefinition_Level(), this.getLevel(), "level", null, 0, 1, TaskDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(artifactDefinitionEClass, ArtifactDefinition.class, "ArtifactDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getArtifactDefinition_Id(), ecorePackage.getEBigInteger(), "id", null, 0, 1, ArtifactDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getArtifactDefinition_Organized(), this.getViewpoint(), this.getViewpoint_Caracterize(), "organized", null, 0, -1, ArtifactDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getArtifactDefinition_Level(), this.getLevel(), "level", null, 0, 1, ArtifactDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(speM_IFESTEClass, org.obeonetwork.dsl.spem.extension.spem_ifest.SPEM_IFEST.class, "SPEM_IFEST", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(toolTypeEClass, ToolType.class, "ToolType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getToolType_Supports(), this.getViewpoint(), null, "supports", null, 0, -1, ToolType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getToolType_MetaModel(), this.getMetaModel(), null, "MetaModel", null, 0, 1, ToolType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(engineeringDomainPackageEClass, EngineeringDomainPackage.class, "EngineeringDomainPackage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(toolTypePackageEClass, ToolTypePackage.class, "ToolTypePackage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(metaModelEClass, MetaModel.class, "MetaModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getMetaModel_MetaModelURI(), ecorePackage.getEString(), "MetaModelURI", "http://example.org", 0, 1, MetaModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(metaModelPackageEClass, MetaModelPackage.class, "MetaModelPackage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(ontologyLinkedElementEClass, OntologyLinkedElement.class, "OntologyLinkedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getOntologyLinkedElement_Uri(), ecorePackage.getEString(), "uri", "http://www.example.org", 0, 1, OntologyLinkedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(artifactDefinitionPackageEClass, ArtifactDefinitionPackage.class, "ArtifactDefinitionPackage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(artifactEClass, Artifact.class, "Artifact", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getArtifact_Level(), this.getLevel(), "level", null, 0, 1, Artifact.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(activityEClass, Activity.class, "Activity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getActivity_Context(), this.getEngineeringDomain(), null, "context", null, 0, 1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(artifactTransformationEClass, ArtifactTransformation.class, "ArtifactTransformation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getArtifactTransformation_Source(), theSpemPackage.getWorkProductUse(), null, "source", null, 0, 1, ArtifactTransformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getArtifactTransformation_Target(), theSpemPackage.getWorkProductUse(), null, "target", null, 0, 1, ArtifactTransformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		// Initialize enums and add enum literals
		initEEnum(levelEEnum, Level.class, "Level");
		addEEnumLiteral(levelEEnum, Level.DOMAIN);
		addEEnumLiteral(levelEEnum, Level.METHOD);
		addEEnumLiteral(levelEEnum, Level.TOOL);

		// Create resource
		createResource(eNS_URI);
	}

} //Spem_ifestPackageImpl
